//
//  MoiveTableViewCell.m
//  UI_周末豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "MoiveTableViewCell.h"

@implementation MoiveTableViewCell


- (void)dealloc {
    [super dealloc];
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
        
        
    }
    return self;
}




- (void)creatCell {
    self.RootImg = [[UIImageView alloc] init];
    [self.contentView addSubview:_RootImg];
    self.PicImg = [[UIImageView alloc] init];
    [self.RootImg addSubview:_PicImg];
    self.name = [[UILabel alloc] init];
    [self.RootImg addSubview:_name];
}



- (void)layoutSubviews {
    [super layoutSubviews];
    _RootImg.frame = CGRectMake(15, 10, 350, 120);
    _RootImg.image = [UIImage imageNamed:@"bg_eventlistcell.png"];
    _PicImg.frame = CGRectMake(5, 3, 70, 110);
    _PicImg.backgroundColor = [UIColor redColor];
    _name.frame = CGRectMake(90, 40, 150, 40);
    _name.backgroundColor = [UIColor clearColor];
    _name.font = [UIFont systemFontOfSize:20];
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
